package _6;

import java.util.*;

public class Maxshu {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.print("请输入要三个整数，用空格分开:");
        int va1 = in.nextInt();
        int va2 = in.nextInt();
        int va3 = in.nextInt();
        max(va1, va2, va3);
    }
    static void max(int va1,int va2,int va3){
        List<Integer> list = new ArrayList<Integer>();
        list.add(va1);
        list.add(va2);
        list.add(va3);
        System.out.println("求出的最大值是：" + Collections.max(list));
    }
}
